package com.example.cloudcashierpos.http;


import com.example.cloudcashierpos.bean.MsgNet;

import java.util.List;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Url;

/**
 * Created by oubama on 2017-08-05.
 */

public interface RegisterSerivce {
//    @POST("Interface/OnLogin")
//    Call<ResponseRes<LoginData>> loginByPos(@Body RequestBody body);
//    Call<LoginMsg> loginByPos(@Body RequestBody body);
    // Call<LoginMsg> 发起请求响应值是LoginMsg，调用封装的loginByPos，@Body RequestBody body请求体参数是body

//    @POST
//    Call<UnifyData<List<DeskArea>>> postdatatonet(@Url String url, @Body RequestBody body);


    // 通用的接口
//    @Headers({
//            "Authorization: Bearer YOUR_TOKEN",
//            "Content-Type: application/json" // 设置请求头
//    })
//    @POST
    Call<MsgNet> postDataNet(@Url String url, @Body RequestBody body);
}
